﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using MyHotel_BUSWS.MyHotel_LoaiPhongDAO_Webservice;



namespace MyHotel_BUSWS
{
    /// <summary>
    /// Summary description for MHQuyDinhBUSWS
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class MHQuyDinhBUSWS : System.Web.Services.WebService
    {

        [WebMethod]
        public LoaiPhong[] getListLoaiPhong()
        {
            return MHQuyDinhBUS.getListLoaiPhong();
        }

        [WebMethod]
        public bool themLoaiPhong(LoaiPhong loaiphong)
        {
            return MHQuyDinhBUS.themLoaiPhong(loaiphong);
        }


        [WebMethod]
        public bool capNhatLoaiPhong(LoaiPhong loaiphong)
        {
            return MHQuyDinhBUS.capNhatLoaiPhong(loaiphong);
        }

        [WebMethod]
        public bool xoaLoaiPhong(LoaiPhong loaiphong)
        {
            return MHQuyDinhBUS.xoaLoaiPhong(loaiphong);
        }
    }
}
